Integrand size = 33, antiderivative size = 122 \[ \int \frac {\sec (e+f x)}{\sqrt {a+a \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {\sqrt {2} \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a+a \sec (e+f x)}}\right )}{\sqrt {a} (c-d) f}-\frac {2 \sqrt {d} \arctan \left (\frac {\sqrt {a} \sqrt {d} \tan (e+f x)}{\sqrt {c+d} \sqrt {a+a \sec (e+f x)}}\right )}{\sqrt {a} (c-d) \sqrt {c+d} f} \]
[Out]
Time = 0.36 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {4057, 3880, 209, 4052, 211} \[ \int \frac {\sec (e+f x)}{\sqrt {a+a \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {\sqrt {2} \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a \sec (e+f x)+a}}\right )}{\sqrt {a} f (c-d)}-\frac {2 \sqrt {d} \arctan \left (\frac {\sqrt {a} \sqrt {d} \tan (e+f x)}{\sqrt {c+d} \sqrt {a \sec (e+f x)+a}}\right )}{\sqrt {a} f (c-d) \sqrt {c+d}} \]
[In]
[Out]
Rule 209
Rule 211
Rule 3880
Rule 4052
Rule 4057
Rubi steps \begin{align*} \text {integral}& = \frac {\int \frac {\sec (e+f x)}{\sqrt {a+a \sec (e+f x)}} \, dx}{c-d}-\frac {d \int \frac {\sec (e+f x) \sqrt {a+a \sec (e+f x)}}{c+d \sec (e+f x)} \, dx}{a (c-d)} \\ & = -\frac {2 \text {Subst}\left (\int \frac {1}{2 a+x^2} \, dx,x,-\frac {a \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{(c-d) f}+\frac {(2 d) \text {Subst}\left (\int \frac {1}{a c+a d+d x^2} \, dx,x,-\frac {a \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{(c-d) f} \\ & = \frac {\sqrt {2} \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a+a \sec (e+f x)}}\right )}{\sqrt {a} (c-d) f}-\frac {2 \sqrt {d} \arctan \left (\frac {\sqrt {a} \sqrt {d} \tan (e+f x)}{\sqrt {c+d} \sqrt {a+a \sec (e+f x)}}\right )}{\sqrt {a} (c-d) \sqrt {c+d} f} \\ \end{align*}
Time = 1.43 (sec) , antiderivative size = 144, normalized size of antiderivative = 1.18 \[ \int \frac {\sec (e+f x)}{\sqrt {a+a \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {2 \left (\sqrt {-c-d} \arcsin \left (\tan \left (\frac {1}{2} (e+f x)\right )\right )+\sqrt {2} \sqrt {d} \text {arctanh}\left (\frac {\sqrt {d} \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {-c-d} \sqrt {\frac {\cos (e+f x)}{1+\cos (e+f x)}}}\right )\right )}{\sqrt {-c-d} (c-d) f \sqrt {\cos (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {a (1+\sec (e+f x))}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(503\) vs. \(2(99)=198\).
Time = 19.78 (sec) , antiderivative size = 504, normalized size of antiderivative = 4.13
method | result | size |
default | \(\frac {\left (2 \sqrt {\left (c +d \right ) \left (c -d \right )}\, \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )+\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\right ) \sqrt {\frac {d}{c -d}}+d \sqrt {2}\, \ln \left (-\frac {2 \left (-\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \sqrt {2}\, \sqrt {\frac {d}{c -d}}\, c +\sqrt {2}\, \sqrt {\frac {d}{c -d}}\, \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, d +\sqrt {\left (c +d \right ) \left (c -d \right )}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )+c -d \right )}{c \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )-\left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right ) d +\sqrt {\left (c +d \right ) \left (c -d \right )}}\right )-d \sqrt {2}\, \ln \left (-\frac {2 \left (\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \sqrt {2}\, \sqrt {\frac {d}{c -d}}\, c -\sqrt {2}\, \sqrt {\frac {d}{c -d}}\, \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, d +\sqrt {\left (c +d \right ) \left (c -d \right )}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )-c +d \right )}{-c \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )+\left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right ) d +\sqrt {\left (c +d \right ) \left (c -d \right )}}\right )\right ) \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \sqrt {-\frac {2 a}{\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}}{2 f \sqrt {\frac {d}{c -d}}\, \left (c -d \right ) \sqrt {\left (c +d \right ) \left (c -d \right )}\, a}\) | \(504\) |
[In]
[Out]
none
Time = 0.49 (sec) , antiderivative size = 963, normalized size of antiderivative = 7.89 \[ \int \frac {\sec (e+f x)}{\sqrt {a+a \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\sec (e+f x)}{\sqrt {a+a \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int \frac {\sec {\left (e + f x \right )}}{\sqrt {a \left (\sec {\left (e + f x \right )} + 1\right )} \left (c + d \sec {\left (e + f x \right )}\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\sec (e+f x)}{\sqrt {a+a \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int { \frac {\sec \left (f x + e\right )}{\sqrt {a \sec \left (f x + e\right ) + a} {\left (d \sec \left (f x + e\right ) + c\right )}} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \frac {\sec (e+f x)}{\sqrt {a+a \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {\sec (e+f x)}{\sqrt {a+a \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int \frac {1}{\cos \left (e+f\,x\right )\,\sqrt {a+\frac {a}{\cos \left (e+f\,x\right )}}\,\left (c+\frac {d}{\cos \left (e+f\,x\right )}\right )} \,d x \]
[In]
[Out]